<template>
    <div class="icons">
        <div v-for="item of list">
            <a :href="item.src">
                <img :src="item.img" alt="">
                <p>{{item.text}}</p>
            </a>                
        </div>
    </div>
</template>

<script>
    export default{
        name:"HomeIcons",
        props:{
            list:Array
        }
    }
</script>

<style lang="stylus" scoped>
.icons
    width 3.45rem
    margin 0 auto 
    margin-top 1rem
    div
        width 20%
        text-align center
        float left
        margin-bottom 0.1rem
        img 
            width 0.48rem
            height 0.48rem
        p
            margin-top 0.1rem
            line-height 0.2rem    
            font-size 0.14rem
            color #666
</style>

